<script setup lang="ts">
import { ref } from 'vue'
import articelList from '../../components/articel-list.vue'
import { useRoute, useRouter } from 'vue-router'

const userId = ref()
const route = useRoute()
const router = useRouter()
userId.value = route.params.userId

const onClickLeft = () => router.push({ name: 'my' })
</script>

<template>
   <div>
      <van-nav-bar :title="$route.meta.title" left-text="返回" left-arrow @click-left="onClickLeft" />

      <articelList :userId="+userId"></articelList>
   </div>
</template>
